package com.foxire.extends_constructor;

public class Test3 {
    public static void main(String[] args) {
        // 目标：理解this(...)调用兄弟构造器
        // 1. 创建对象
        Student s1 = new Student("张三", 18, '男');
        System.out.println(s1);
        System.out.println("======================");
        Student s2 = new Student("李四", 19, '女');
        System.out.println(s2);
    }
}
